package org.jeese.modules.demo.web;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/api/")
public class ThymeleafController {

	@RequestMapping("hello")
	public String hello(Map<String, Object> map) {
		map.put("hello", "thymeleaf test from ThymeleafController.hello");
		return "demo/hello";
	}
	
	@RequestMapping("socket")
	public String socket() {
		return "demo/socket";
	}
}